package com.leyou;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 网关微服务
 */
/*@SpringBootApplication
@EnableDiscoveryClient //开启注册nacos功能
@EnableCircuitBreaker //开启熔断器*/

@SpringCloudApplication  //等价于上面三个注解
@EnableFeignClients
@EnableScheduling // 开启SpringTask
public class LyGatewayApplication {
    public static void main(String[] args) {
        SpringApplication.run(LyGatewayApplication.class,args);
    }
}
